extends Area2D


const FIREBALL_SPEED = 200
# class member variables go here, for example:
# var a = 2
# var b = "textvar"

func _ready():
	# Called when the node is added to the scene for the first time.
	# Initialization here


	
	pass
func _process(delta):
	var speed_x = 1
	var speed_y = 0
	var motion = Vector2(speed_x, speed_y) * FIREBALL_SPEED
	set_position(get_global_position() + motion * delta)



#func _on_Area2D_body_entered(area):
#	print("Body entexdfsred the area")






func _on_asd_area_entered(area):
	queue_free()
	area.queue_free()

